package io.awen.modules.sign.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.awen.modules.sign.entity.SignCarDispatchEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 车辆调度表(用于用户主动调度,改变执行任务的车辆)
 *
 * @author liu.wen
 * @email liu.wen@qq.com
 * @date 2022-08-10 00:47:08
 */
@Mapper
public interface SignCarDispatchDao extends BaseMapper<SignCarDispatchEntity> {

    public Double weightTotal(
            Long ctUnitId,
            Date startTime,
            Date endTime,
            String dispatchType
    );

    public List<Map<Long, Double>> weightTotalGroupByUnit(
            Date startTime,
            Date endTime,
            String dispatchType
    );
}
